# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-pcfx
pkgver=0_git20220409
pkgrel=0
_commit="bfc0954e14b261a04dcf8dbe0df8798f16ae3f3c"
pkgdesc="standalone port of Mednafen PCFX to libretro"
url="https://github.com/libretro/beetle-pcfx-libretro"
arch="all"
license="GPL-2.0-only"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-pcfx-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-pcfx-libretro-$_commit"
options="!check" # No tests

build() {
	rm -rf deps/zlib*
	make SYSTEM_ZLIB=1
}

package() {
	install -Dm644 mednafen_pcfx_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_pcfx_libretro.so
}

sha512sums="
3a8542b8e904026083486f3f1e1c4859bae1befa76d2ba811f629ef6dfe6e4bac279e5e1979b913b1c3257fca6e61335e42027c7f6bbd0049f98793f65aaa781  libretro-beetle-pcfx-bfc0954e14b261a04dcf8dbe0df8798f16ae3f3c.tar.gz
"
